package com.sparkseries.common.security.domain;

import java.util.Collections;
import java.util.List;
import java.util.Optional;

/**
 * 忽略地址记录
 * @param urls
 */
public record IgnoreUrls(List<String> urls) {
    public IgnoreUrls(List<String> urls) {
        this.urls = Collections.unmodifiableList(
                Optional.ofNullable(urls).orElse(Collections.emptyList())
        );
    }
}